<script type="text/javascript">

//    initQuery();
//    function initQuery()
//    {
//        var url = "/admin/templateshell/lookuplist?typeId=1";
//        var target="lookuplist";
//        $('li.ztree:first').bjuiajax('doLoad', {url:url, target:target});
//    }

    function do_open_layout(event, treeId, treeNode) {
//        if (treeNode.isParent) {
//            var zTree = $.fn.zTree.getZTreeObj(treeId)
//
//            zTree.expandNode(treeNode)
//            return
//        }
        $(event.target).bjuiajax('doLoad', {url:treeNode.url, target:treeNode.divid})

        event.preventDefault()
    }

    function bringBack(id,name)
    {
        var paramId='${(paramId)!}';
        $('#templateId_'+paramId).val(id);
        $('#templateName_'+paramId).val(name);
       $.CurrentDialog.dialog('closeCurrent')
    }
</script>
<div class="bjui-pageContent">
    <div style="float:left; width:200px;">
        <ul id="layout-tree" class="ztree" data-toggle="ztree" data-expand-all="true" data-on-click="do_open_layout">
        <#--<#list bizUnits as bizUnit>-->
            <#--<li data-id="${bizUnit.id!}" data-pid="0">${(bizUnit.note)!}</li>-->
        <#--&lt;#&ndash;<#assign ags = agentMap[bizUnit.id]>&ndash;&gt;-->
            <#--<#assign ags=((agentMap[bizUnit.id])!)>-->
            <#--<#list ags as ag>-->
                <#--<li data-id="${(ag.id)!}" data-pid="${bizUnit.id!}" data-url="/admin/agent/node?agentId=${(ag.id)!}" data-divid="#layout">${(ag.name)!}</li>-->
            <#--</#list>-->
        <#--</#list>-->
           <@p.treeUrl typeTree "/admin/templateshell/lookuplist?typeId=" "lookuplist"/>
        </ul>
    </div>


    <div id="lookuplist" style="margin-left:210px; height:99.9%; overflow:hidden;">
        <#--<#include "include/lookup_list.ftl">-->
    </div>
</div>

